-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make opendb API more generic #4
Conversation
d75fcf4
to
8773668
Compare
6eb5e23
to
461a8a9
Compare
de3f081
to
a2f9efe
Compare
b151dee
to
56aabfd
Compare
@@ -423,77 +428,77 @@ func registerMetrics() { | |||
} | |||
|
|||
// report reports metrics to prometheus based on rocksdb props and stats | |||
func (m *Metrics) report(props *properties, stats *stats) { | |||
func (m *Metrics) report(dbName string, props *properties, stats *stats) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a list/documentation of which metrics are reported? Can we link to it in Confluence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best sources of information:
- grafana dashboard
- source code
- rocksdb wiki
but I'll add a README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a README for this repo @evgeniy-scherbina - can be a separate PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look fine/safe. I would like to tidy this repo up with a readme that states what its purpose is, as well as document all the rocks db metrics we are collecting and from which databases.
496cbd2
to
3a6e771
Compare
Dependency changes:
cosmossdk.io/api
:v0.7.5
->v0.3.1
cometbft
version declaration:v0.38.7
->v0.37.4
NOTE
: we're using the fork anyway:github.com/cometbft/cometbft => github.com/kava-labs/cometbft v0.37.4-kava.1
golang.org/x/exp
:v0.0.0-20240404231335-c0f41cb1a7a0
->v0.0.0-20230711153332-06a737ee72cb
NOTE
: we downgraded to versions which are used in kava and ethermintSource code changes:
db name
instead of hardcodingapplication.db
data
db name
as a label in prometheus metricsRelated PR: Kava-Labs/ethermint#63